﻿
using System.Web.Script.Serialization;

namespace QJ.kuangjia.tools
{
    /// <summary>
    /// 序列化
    /// </summary>
    public  static class Json
    {
        public static string ToJson(this object obj)
        {
            JavaScriptSerializer json = new JavaScriptSerializer();
            string reslut = json.Serialize(obj);
            return reslut;
        }
    }
}